package com.audaque.springboot.foshanupload.jwtcore.component.iface;

import io.jsonwebtoken.*;
import io.jsonwebtoken.security.Keys;

import javax.crypto.SecretKey;
import java.security.KeyPair;
import java.security.NoSuchAlgorithmException;
import java.util.Map;

/**
 * @author zgb
 * @desc ...
 * @date 2022-07-01 12:00:19
 */
public interface JwtProviderIface {
    public String generateKeyStr();

    public SecretKey generateKey();

    public KeyPair generateKeyPair();

    public String getAccessToken(Map<String, Object> map) throws Exception;

    public String getBody(String accessToken) throws Exception;
}
